/*
 * @Author: zulezhe
 * @Date: 2022-03-25 16:37:41
 * @LastEditors: zulezhe
 * @LastEditTime: 2022-03-29 15:04:37
 * @Path: https://gitee.com/zulezhe/
 * @Description:
 */
const req = require.context("../../assets/icons/svg", false, /\.svg$/);
const requireAll = (requireContext) => requireContext.keys();

const re = /\.\/(.*)\.svg/;

const icons = requireAll(req).map((i) => {
  return i.match(re)[1];
});

export default icons;
